package com.atguigu.srb.core.service;

import com.atguigu.srb.core.pojo.entity.BorrowInfo;
import com.atguigu.srb.core.pojo.vo.BorrowDetailVO;
import com.atguigu.srb.core.pojo.vo.BorrowInfoApprovalVO;
import com.atguigu.srb.core.pojo.vo.BorrowInfoSearchVO;
import com.atguigu.srb.core.pojo.vo.BorrowInfoVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 借款信息表 服务类
 * </p>
 *
 * @author Atguigu
 * @since 2024-04-15
 */
public interface BorrowInfoService extends IService<BorrowInfo> {

    void saveBorrowInfo(String token, BorrowInfo borrowInfo);

    void getBorrowInfoListByToken(String token, Page<BorrowInfo> page);

    void cancelBorrowRequest(String token, Long borrowId);

    Page<BorrowInfoVO> getBorrowInfoVOList(Integer pageNum, Integer pageSize, BorrowInfoSearchVO borrowInfoSearchVO);

    BorrowDetailVO getBorrowDetail(Long borrowInfoId);

    Integer status(String token);

    void borrowInfoApproval(BorrowInfoApprovalVO borrowInfoApprovalVO);
}
